package com.szrt.day20161019.point08.superperson;

import com.szrt.day20161019.point08.dance.service.DanceService;
import com.szrt.day20161019.point08.driver.service.DriverService;
import com.szrt.day20161019.point08.song.service.SongService;

public abstract class  SuperPerson implements  SongService ,DriverService,DanceService  {
	
	/**
	 * 写字
	 * @return
	 */
	public abstract boolean  write();
	
	
	@Override
	public boolean dance() {
		System.out.println("我会跳舞....");
		return true;
	}
	
	@Override
	public boolean song() {
		System.out.println("我会唱歌....");
		return true;
	}

	@Override
	public boolean drive() {
		System.out.println("我会开车....");
		return true;
	}

	@Override
	public double receiveMoney(double distance) {
		double result =0.0;
		if(distance<=5){
			result =12;
		}else{
			return distance * 2;
		}
		return result;
	}
}
